package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 警报对象 health_alarm
 * 
 * @author 22008021011kjp
 * @date 2025-06-23 14:41:55
 */
public class Alarm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** IMEI */
    @Excel(name = "IMEI")
    private String sn;

    /** 警报名称 */
    @Excel(name = "警报名称")
    private String name;

    /** 警报值 */
    @Excel(name = "警报值")
    private BigDecimal value;

    /** 警报时间 */
    @Excel(name = "警报时间")
    private String timeStamp;

    /** 状态：0：未读；1：已读 */
    @Excel(name = "状态：0：未读；1：已读")
    private Integer state;

    public void setSn(String sn) 
    {
        this.sn = sn;
    }

    public String getSn() 
    {
        return sn;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setValue(BigDecimal value) 
    {
        this.value = value;
    }

    public BigDecimal getValue() 
    {
        return value;
    }

    public void setTimeStamp(String timeStamp) 
    {
        this.timeStamp = timeStamp;
    }

    public String getTimeStamp() 
    {
        return timeStamp;
    }

    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("sn", getSn())
            .append("name", getName())
            .append("value", getValue())
            .append("timeStamp", getTimeStamp())
            .append("state", getState())
            .toString();
    }
}
